package com.xin.di.uav.applet.resp;


import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@ApiModel("同城跑腿订单响应对象")
@Data
public class ErrandOrderResp {

    @ApiModelProperty("订单主键")
    private String id;

    @ApiModelProperty("同城订单编号")
    @Excel(name = "同城订单编号", width = 30)
    private String errandOrderSn;

    @ApiModelProperty("丰翼订单编号")
    @Excel(name = "丰翼订单编号", width = 30)
    private String orderSn;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间", format = "yyyy-MM-dd HH:mm:ss", width = 30)
    private Date createTime;

    @ApiModelProperty("配送距离")
    @Excel(name = "配送距离", width = 30)
    private Double deliveryDistance;

    @ApiModelProperty("结算方式")
    @Excel(name = "结算方式", width = 30)
    private String paymentMethod;

    @ApiModelProperty("总支付金额")
    @Excel(name = "总支付金额    ", width = 30)
    private BigDecimal totalPaymentAmount;

    @ApiModelProperty("实际支付金额")
    @Excel(name = "实际支付金额", width = 30)
    private BigDecimal pricePaid;

    @ApiModelProperty("优惠券总金额")
    @Excel(name = "优惠券总金额", width = 30)
    private BigDecimal totalCouponAmount;

    @ApiModelProperty("取件码")
    @Excel(name = "取件码", width = 30)
    private String pickUpCode;

    @ApiModelProperty("收件码")
    @Excel(name = "收件码", width = 30)
    private String receiptCode;

    @ApiModelProperty("骑手名称")
    @Excel(name = "骑手名称", width = 30)
    private String riderName;

    @ApiModelProperty("骑手电话")
    @Excel(name = "骑手电话", width = 30)
    private String riderPhone;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "更新时间", format = "yyyy-MM-dd HH:mm:ss", width = 30)
    private Date updateTime;

    @ApiModelProperty("投妥照片URL")
    @Excel(name = "投妥照片URL", width = 30)
    private String submitPhotoUrl;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("订单状态名称")
    @Excel(name = "状态", width = 30)
    private String statusName;

    @ApiModelProperty("骑手纬度")
    private Double latitude;

    @ApiModelProperty("骑手经度")
    private Double longitude;
}
